package de.edb.dto;


import java.util.Date;

/**
 * Data transfer object
 * used to represent a special version of Event with all the Artists denoted in a String.
 */
public class EventArtistDTO implements Comparable<EventArtistDTO> {

	private int id;
	private String locname;
	private Date begin;
	private String begin_f;
	private String end_f;
	private String artists = "";
	private String name;
	
	public EventArtistDTO(Date begin, int id, String name, String locname,
			String begin_f, String end_f, String artists) {
		this.name = name;
		this.begin = begin;
		this.id = id;
		this.locname = locname;
		this.begin_f = begin_f;
		this.end_f = end_f;
		this.artists = artists;
	}

	public int getId() {
		return id;
	}

	public String getLocationName() {
		return locname;
	}
	
	public String getBegin() {
		return begin_f;
	}
	
	public String getArtists() {
		return artists;
	}

	@Override
	public int compareTo(EventArtistDTO o) {
		return this.begin.compareTo(o.begin);
	}

	public String getEnd() {
		return end_f;
	}
	
	public String getName(){
		return name;
	}
	
	public String getLocname(){
		return locname;
	}

}
